<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
<meta charset="utf-8" />
<title>${session.SOFT_NAME }_智能办公系统</title>
<meta name="description" content="Dashboard" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%include("../../../resapi/style.html"){}%>
<link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet" />
<link href="/module/jeDate/jedate.css" rel="stylesheet" />
<link href='/module/area/chosen.min.css' rel='stylesheet'>
<style type="text/css">
#myTable tr td {
	vertical-align: middle;
}

.bootstrap-tagsinput {
	background-color: #fbfbfb;
}

.select2-container--open {
	z-index: 9999;
	!
	important;
}

.chosen-container {
	margin-top: -10px;
}

.bootstrap-tagsinput {
	background-color: #fbfbfb;
}

.choose-c .item {
	min-width: 100px;
	text-align: left;
	line-height: 30px;
	cursor: pointer;
	padding-left: 10px;
}

.choose-c .item1 {
	min-width: 50px;
	padding-left: 20px;
	display: inline-block;
	vertical-align: top;
}

.btn-sty {
	width: 72px;
	display: inline-block;
	background-color: #53a93f;
	color: #fff;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
}
</style>
</head>
<body style="overflow-y: auto;">
	<div class="page-body" style="padding: 0px">
		<div class="row">
			<div class="col-md-12 col-sm-12 col-xs-12">
				<div class="widget-header bg-themeprimary">
					<span class="widget-caption">客户管理</span>
				</div>
				<div class="widget-body">
					<div id="registration-form">
						<form role="form">
							<div class="form-title" align="right">
								<span style="float: left;">客户列表 </span> <a class="btn btn-azure js-btn" style="margin-left: 20px;">新建客户</a>
							</div>
							<div class="row">
								<div class="col-md-12">
									<div class="buttons-preview" id="toobar">
										<div class="row">
											<span style="margin-left: 10px">所属行业:</span> <span style="margin-left: 10px">
												<div style="width: 150px; display: inline-block;">
													<select name="industry" id="industry" class="form-control" style="border-radius: 0px;"></select>
												</div>
											</span> <span style="margin-left: 10px">企业标签:</span> <span style="margin-left: 10px">
												<div style="width: 150px; display: inline-block;">
													<input id="tags" name="tags" style="line-height: 24px; border-radius: 0px;" readonly="readonly" class="form-control" />
												</div>
											</span> <span style="margin-left: 10px">所在地区:</span> <span style="margin-left: 10px;"> <select id="country" class="dept_select" style="width: 100px;"></select> <select
												id="province" class="dept_select" style="width: 100px;"></select> <select id="city" class="dept_select" style="width: 100px;"></select>
											</span>
										</div>
										<div class="row">
											<span style="margin-left: 10px">企业类型:</span> <span style="margin-left: 10px">
												<div style="width: 150px; display: inline-block;">
													<select id="model" style="border-radius: 0px;" name="model" class="form-control">
														<option value="">全部</option>
														<option value="1">制造</option>
														<option value="2">贸易</option>
														<option value="0">其它</option>
													</select>
												</div>
											</span> <span style="margin-left: 10px">客户等级:</span> <span style="margin-left: 10px">
												<div style="width: 150px; display: inline-block;">
													<select id="level" style="border-radius: 0px;" name="level" class="form-control">
														<option value="">全部</option>
														<option value="1">公司重点客户</option>
														<option value="2">公司主要客户</option>
														<option value="3">公司一般客户</option>
														<option value="4">潜在重点客户</option>
														<option value="5">潜在主要客户</option>
														<option value="6">潜在一般客户</option>
														<option value="7">黑名单客户</option>
														<option value="0">信息池客户</option>
													</select>
												</div>
											</span> <span style="margin-left: 10px">合作意向:</span> <span style="margin-left: 10px"> <select id="intention" style="border-radius: 0px;" name="intention">
													<option value="">全部</option>
													<option value="1">强烈</option>
													<option value="2">一般</option>
													<option value="0">暂无可能</option>
											</select>
											</span> <a href="javascript:void(0);" class="btn btn-purple js-querybtn" style="margin-left: 20px;">查询</a>
										</div>
									</div>
									<table id="myTable"></table>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;" id="linkmanmodal">
		<div class="modal-dialog" style="float: right; top: 0px; margin-top: 0px;">
			<div class="modal-content">

				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title" id="myLargeModalLabel">创建联系人</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal" id="form1">
						<div class="form-group">
							<div class="col-sm-12" align="center" id="lCustomerName"></div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">联系人：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="linkName" name="linkName" placeholder="联系人">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">性别：</label>
							<div class="col-sm-10">
								<div class="radio">
									<label style="padding-left: 0px";> <input name="sex" type="radio" value="1" checked="checked"> <span class="text">先生 </span>
									</label> <label> <input name="sex" type="radio" value="2"> <span class="text">女士 </span>
									</label> <label> <input name="sex" type="radio" value="0"> <span class="text">其他 </span>
									</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">所在部门：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="deptName" name="deptName" placeholder="所在部门">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">职务：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="postion" name="postion" placeholder="职务">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">决策人：</label>
							<div class="col-sm-10">
								<div class="radio">
									<label style="padding-left: 0px";> <input name="decisionMaker" type="radio" value="1" checked="checked"> <span class="text">否 </span>
									</label> <label> <input name="decisionMaker" type="radio" value="2"> <span class="text">是 </span>
									</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">手机号码：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="mobile" name="mobile" placeholder="手机号码">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">电子邮件：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="email" name="email" placeholder="电子邮件">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">公司电话：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="tel" name="tel" placeholder="公司电话">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">电子传真：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="fax" name="fax" placeholder="电子传真">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">通讯地址：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="address" name="address" placeholder="通讯地址">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">生日：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="birthday" name="birthday" placeholder="生日">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">爱好：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="hobby" name="hobby" data-role="tagsinput" placeholder="爱好">
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-warning" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary js-createLinkMan">保存</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>

	<div class="modal fade bs-example-modal-lg" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;" id="recoredmodal">
		<div class="modal-dialog" style="float: right; top: 0px; margin-top: 0px;">
			<div class="modal-content">

				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title" id="myLargeModalLabel">创建联系记录</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal" id="form2">
						<div class="form-group">
							<div class="col-sm-12" align="center" id="rCustomerName"></div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">联系人：</label>
							<div class="col-sm-10">
								<input type="hidden" id="rlinkName" name="rlinkName" style="width: 100%;">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">联系类型：</label>
							<div class="col-sm-10">
								<select class="form-control" id="recordType" name="recordType">
									<option value="0">我方主动联系</option>
									<option value="1">对方主动联系</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">回访类型：</label>
							<div class="col-sm-10">
								<select class="form-control" id="linkType" name="linkType">
									<option value="0">日常联系</option>
									<option value="1">营销事宜</option>
									<option value="2">意见反馈</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">下次回访：</label>
							<div class="col-sm-10">
								<input type="text" readonly="readonly" class="form-control" id="nextVisit" name="nextVisit" placeholder="下次回访">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">回访提醒：</label>
							<div class="col-sm-10">
								<div class="checkbox" id="msgType"></div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">联系内容：</label>
							<div class="col-sm-10">
								<div id="content"></div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">相关附件 ：</label>
							<div class="col-sm-10">
								<div style="padding-top: 4px;">
									<div id="show_crmattach"></div>
									<a class="addfile" href="javascript:void(0)">附件上传 <input data_value="" type="file" onchange="fileUpLoad('crm','crmattach');" hidefocus="true" size="1" id="crmattach"
										name="crmattach" class="addfile" multiple="multiple"></a>
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-warning" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary js-createCrmRecord">保存</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
	<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;" id="tagsModal">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">

				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title" id="myLargeModalLabel">企业标签选择</h4>
				</div>
				<div class="modal-body">
					<div class="choose-c"></div>
				</div>
				<div class="modal-footer">
					<a href="javascript:void(0);" class="btn btn-palegreen js-clear" data-dismiss="modal">全部</a>
					<a href="javascript:void(0);" class="btn btn-maroon js-ok" data-dismiss="modal">确定</a>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
</body>
<%include("../../../resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/fileupload/pageoffice.js" id="po_js_main"></script>
<script src="/module/bootstrap-table/bootstrap-table.js"></script>
<script src="/module/bootstrap-table/bootstrap-table-zh-CN.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script src="/module/jeDate/jeDate.js"></script>
<script src="/assets/js/tagsinput/bootstrap-tagsinput.js"></script>
<script src="/assets/js/editors/summernote/summernote.js"></script>
<script src="/assets/js/select2/select2.js"></script>
<script type="text/javascript" src="/module/area/chosen.jquery.min.js"></script>
<script type="text/javascript" src="/module/area/area_chs.js"></script>
<script type="text/javascript">
		var areaObj = [];
		function initLocation(e){
			var a = 0;
			for (var m in e) {
				areaObj[a] = e[m];
				var b = 0;
				for (var n in e[m]) {
					areaObj[a][b++] = e[m][n];
				}
				a++;
			}
		}
	</script>
<script type="text/javascript" src="/module/area/location_chs.js"></script>
<script src="/gobal/js/page/crm/customerquery.js"></script>
<script>
	  	$('#scopeBusiness').summernote({ height: 200 });
        $('#remark').summernote({ height: 200 });
    </script>
<script>
        $(document).on('click','.js-first',function(){
            $(this).find('span').toggleClass('badge badge-purple badge-square');
        })
        
    </script>
</html>